//
//  MenusHeadView.m
//  Menu
//
//  Created by mc on 16/4/19.
//  Copyright © 2016年 xmj. All rights reserved.
//

#import "MenusHeadView.h"

#define normalColor [UIColor colorWithRed:196.0/255 green:199.0/255 blue:202.0/255 alpha:1]
#define selectColor [UIColor colorWithRed:235.0/255 green:59.0/255 blue:68.0/255 alpha:1]

@interface MenusHeadView()



@end

@implementation MenusHeadView

- (void)awakeFromNib{
    [self.steamTasteButton setTitleColor:selectColor forState:UIControlStateNormal];
    [self.barbecueButton setTitleColor:normalColor forState:UIControlStateNormal];
    [self.masterDishButton setTitleColor:normalColor forState:UIControlStateNormal];
}

- (void)changeBtnColor:(UIButton *)btn{
    if (btn.tag == 2) {
        [self.steamTasteButton setTitleColor:normalColor forState:UIControlStateNormal];
        [self.barbecueButton setTitleColor:selectColor forState:UIControlStateNormal];
        [self.masterDishButton setTitleColor:normalColor forState:UIControlStateNormal];
    }else if (btn.tag == 3){
           [self.steamTasteButton setTitleColor:normalColor forState:UIControlStateNormal];
           [self.barbecueButton setTitleColor:normalColor forState:UIControlStateNormal];
        [self.masterDishButton setTitleColor:selectColor forState:UIControlStateNormal];
    }else{
        [self.steamTasteButton setTitleColor:selectColor forState:UIControlStateNormal];
        [self.barbecueButton setTitleColor:normalColor forState:UIControlStateNormal];
        [self.masterDishButton setTitleColor:normalColor forState:UIControlStateNormal];
    }
}

@end
